#!/bin/bash

for i in $(seq $2)
do
	password=$(echo $RANDOM|md5sum|cut -c1-13)@!
	name=$1_$i
	id $name
	if [[ $?==1 ]];then
		useradd $name
		 
	fi
	echo $password | passwd $name --stdin
	echo name: $name	password:$password >>user_passwd.txt
done
